/**
 * http.ClientRequest
 * Created by sun on 2016/9/9.
 */
var http = require('http');
var req = http.get({host: 'shannanhong.github.io'});

req.on('response', function (res) {
    res.setEncoding('utf8');
    res.on('data', function (data) {
        console.log(data);
    });
});